Reposition Method

Summary
Repositions the cell by removing it and inserting it into another position in the MedicalViewer control.
Syntax
C#
C++/CLI
public void Reposition( 
   int cellIndex, 
   int targetCellIndex, 
   bool swap 
) 
            public: 
void Reposition(  
   int cellIndex, 
   int targetCellIndex, 
   bool swap 
)  

Parameters

cellIndex
Index of the cell to be repositioned.

targetCellIndex
The zero-based index that represents the target position for the cell.

swap
true to swap the cells with the indexes cellIndex, targetCellIndex; false to insert the cell with index of cellIndex into targetCellIndex.

Example

This example swaps the first and the second cell.

C#
using Leadtools; 
using Leadtools.Codecs; 
using Leadtools.MedicalViewer; 
using Leadtools.ImageProcessing.Core; 
 
public void MedicalViewerCellCollectionRepositionCellsExample() 
{ 
   MedicalViewerForm myForm = GetMedicalControl(); 
   MedicalViewer medicalViewer = myForm.Viewer; 
   medicalViewer.Cells.Reposition(0, 1, true); 
 
   myForm.ShowDialog(); 
} 
Requirements

Target Platforms

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.MedicalViewer Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.